import Vue from 'vue'
import VueRouter from 'vue-router'
import ResultsView from '@/views/ResultsView.vue'
import PlayerView from '../views/PlayerView.vue'
import MvView from '../views/MvView.vue'
import ComView from '../views/ComView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/results/:keyword',
    name: 'results',
    component: ResultsView
  },
  {
    path: '/player',
    name: 'player',
    component: PlayerView
  },
  {
    path: '/mv',
    name: 'mv',
    component: MvView
  },
  {
    path: '/com',
    name: 'com',
    component: ComView
  }
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
